package edu.scut.yi.yx.buddylisthandler;

import com.electrotank.electroserver5.entities.User;
import com.electrotank.electroserver5.extensions.BaseBuddyListEventHandler;
import com.electrotank.electroserver5.extensions.BuddyListEventHandler;
import com.electrotank.electroserver5.extensions.ChainAction;
import com.electrotank.electroserver5.extensions.api.EventApi;
import com.electrotank.electroserver5.extensions.api.value.EsObject;

public class BuddyListHandler extends BaseBuddyListEventHandler
{

	@Override
	public ChainAction userAddBuddy(User user, String buddyName,
			EsObject esObject) {
		// TODO Auto-generated method stub
		this.getApi().getLogger().debug(user.getUserName()+" add a new buddy:"+buddyName);
		return ChainAction.OkAndContinue;
	}

	@Override
	public void userRemoveBuddy(User user, String buddyName) {
		// TODO Auto-generated method stub
		this.getApi().getLogger().debug(user.getUserName()+"remove a buddy:"+buddyName);
	}



}
